<template>
  <div class="img_box">
    <i v-if="type === 'element_icon'" :class="iconClass" />
    <img v-else :src="src" alt="">
  </div>
</template>
<script>
export default {
  name: 'CImg',
  props: {
    src: {
      type: String
    },
    type: {
      type: String
    },
    iconClass: {
      type: String
    }
  }
}
</script>
<style scoped>
.img_box{
    display: inline-block;
}
</style>
